<?php

defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'detail';
if($_RQ['op']=='detail'){
	$id = intval($_RQ['id']);
	if(!$id){
		exi('该订单不存在!','error');
	}
	$order=pdo_get('jy_renwushop_renwuorder',array('uniacid'=>$_SESSION['uniacid'],'id'=>$id));
	$order['createtime']=date('Y-m-d H:i:s',$order['createtime']);
	$order['renwu']=pdo_get('jy_renwushop_renwu',array('uniacid'=>$_SESSION['uniacid'],'id'=>$order['renwuid']),array('title','image'));
	$order['statustitle']=$this->renwuorder_status[$order['status']];
	if($order['status']==0){
		$order['statusdesc']='快去提交任务吧！';
	}elseif($order['status']==1){
		$order['statusdesc']='您已提交任务了！等待审核！';
	}elseif($order['status']==2){
		$order['statusdesc']='恭喜您！任务已完成！';
	}elseif($order['status']==3){
		$order['statusdesc']='很遗憾！任务不合格！';
	}elseif($order['status']==4){
		$order['statusdesc']='恭喜您！任务已过期！';
	}
	$return['order']=$order;
	set_html('title','订单详情');
	exi($return);	
}

?>